package com.shycloud.mido.organ.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("org_organization_order")
@EqualsAndHashCode(callSuper = true)
public class OrganizationOrderEntity extends Model<OrganizationOrderEntity> {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    // 订单编号
    private String orderCode;

    // 机构id
    private Integer orgId;

    // 类型(1:1对1单驱;2:1对1双驱;3:1对多双驱;3:1对1个别课)
    private String type;

    // 购买节数
    private Integer amount;

    // 价格
    private BigDecimal price;

    // 支付方式（0：扫码支付；1：钱包支付）
    private Integer way;

    // 创建时间
    private Date createTime;

    // 钱包余额
    private BigDecimal surplus;

    // 优惠额
    private BigDecimal preferential;
}
